/**
 * ...
 * @author Thot
 */

function UnloadProjectCommand(){}; 
POO.extend( UnloadProjectCommand, Command );



UnloadProjectCommand.prototype.execute = function( p_notificationType, p_data )
{
	var facade = ApplicationFacade.getInstance(); 
	var mapProxy = facade.getProxy(MapProxy.NAME);
	var appProxy = facade.getProxy(ApplicationProxy.NAME);
	
	var maps = mapProxy.getData();
	var i = 0;
	var max = maps.length;
	var vo = null;
	
	for( i = 0; i < max; i++ )
	{
		vo = maps[i];
		appProxy.currentMap = vo.name;
		
		facade.sendNotification( ApplicationNotification.REMOVE_MAP, vo.name );
	}
	
};